package com.qcby.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropReader {
    public static String read(String key){
        String result = null;
        Properties prop = new Properties();
        InputStream stream = PropReader.class.getClassLoader().getResourceAsStream("sys.properties");
        try {
            prop.load(stream);
            result = prop.getProperty(key);
        } catch (IOException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
        return result;
    }
}
